define(function (require) {
    var app = require('app')
    .controller('identityCtrl', ['$scope','$rootScope', function($scope,$rootScope){
        $rootScope.ArcGisInfoWindowContentOption = function(content,att) {
            if(att.BHYY=='违法案件'){
                content = content.replace(/@02/gm,'style="display: none"');
                content = content.replace(/@03/gm,'style="display: none"');
                content = content.replace(/@04/gm,'style="display: none"');
                content = content.replace(/@05/gm,'style="display: none"');
                content = content.replace(/@06/gm,'style="display: none"');
                content = content.replace(/@07/gm,'style="display: none"');
                content = content.replace(/@08/gm,'style="display: none"');
                content = content.replace(/@09/gm,'style="display: none"');
            }
            if(att.BHYY=='造林'){
                content = content.replace(/@01/gm,'style="display: none"');
                content = content.replace(/@03/gm,'style="display: none"');
                content = content.replace(/@04/gm,'style="display: none"');
                content = content.replace(/@05/gm,'style="display: none"');
                content = content.replace(/@06/gm,'style="display: none"');
                content = content.replace(/@07/gm,'style="display: none"');
                content = content.replace(/@08/gm,'style="display: none"');
                content = content.replace(/@09/gm,'style="display: none"');
            }
            if(att.BHYY=='抚育'){
                content = content.replace(/@01/gm,'style="display: none"');
                content = content.replace(/@02/gm,'style="display: none"');
                content = content.replace(/@04/gm,'style="display: none"');
                content = content.replace(/@05/gm,'style="display: none"');
                content = content.replace(/@06/gm,'style="display: none"');
                content = content.replace(/@07/gm,'style="display: none"');
                content = content.replace(/@08/gm,'style="display: none"');
                content = content.replace(/@09/gm,'style="display: none"');
            }
            if(att.BHYY=='森林采伐'){
                content = content.replace(/@01/gm,'style="display: none"');
                content = content.replace(/@02/gm,'style="display: none"');
                content = content.replace(/@03/gm,'style="display: none"');
                content = content.replace(/@05/gm,'style="display: none"');
                content = content.replace(/@06/gm,'style="display: none"');
                content = content.replace(/@07/gm,'style="display: none"');
                content = content.replace(/@08/gm,'style="display: none"');
                content = content.replace(/@09/gm,'style="display: none"');
            }
            if(att.BHYY=='林地征占用'){
                content = content.replace(/@01/gm,'style="display: none"');
                content = content.replace(/@02/gm,'style="display: none"');
                content = content.replace(/@03/gm,'style="display: none"');
                content = content.replace(/@04/gm,'style="display: none"');
                content = content.replace(/@06/gm,'style="display: none"');
                content = content.replace(/@07/gm,'style="display: none"');
                content = content.replace(/@08/gm,'style="display: none"');
                content = content.replace(/@09/gm,'style="display: none"');
            }
            if(att.BHYY=='规划调整'){
                content = content.replace(/@01/gm,'style="display: none"');
                content = content.replace(/@02/gm,'style="display: none"');
                content = content.replace(/@03/gm,'style="display: none"');
                content = content.replace(/@04/gm,'style="display: none"');
                content = content.replace(/@05/gm,'style="display: none"');
                content = content.replace(/@07/gm,'style="display: none"');
                content = content.replace(/@08/gm,'style="display: none"');
                content = content.replace(/@09/gm,'style="display: none"');
            }
            if(att.BHYY=='森林火灾'){
                content = content.replace(/@01/gm,'style="display: none"');
                content = content.replace(/@02/gm,'style="display: none"');
                content = content.replace(/@03/gm,'style="display: none"');
                content = content.replace(/@04/gm,'style="display: none"');
                content = content.replace(/@05/gm,'style="display: none"');
                content = content.replace(/@06/gm,'style="display: none"');
                content = content.replace(/@08/gm,'style="display: none"');
                content = content.replace(/@09/gm,'style="display: none"');
            }
            if(att.BHYY=='病虫害'){
                content = content.replace(/@01/gm,'style="display: none"');
                content = content.replace(/@02/gm,'style="display: none"');
                content = content.replace(/@03/gm,'style="display: none"');
                content = content.replace(/@04/gm,'style="display: none"');
                content = content.replace(/@05/gm,'style="display: none"');
                content = content.replace(/@06/gm,'style="display: none"');
                content = content.replace(/@07/gm,'style="display: none"');
                content = content.replace(/@09/gm,'style="display: none"');
            }
            if(att.BHYY=='动植物保护'){
                content = content.replace(/@01/gm,'style="display: none"');
                content = content.replace(/@02/gm,'style="display: none"');
                content = content.replace(/@03/gm,'style="display: none"');
                content = content.replace(/@04/gm,'style="display: none"');
                content = content.replace(/@05/gm,'style="display: none"');
                content = content.replace(/@06/gm,'style="display: none"');
                content = content.replace(/@07/gm,'style="display: none"');
                content = content.replace(/@08/gm,'style="display: none"');
            }
            if(att.BHYY=='其它'){
                content = content.replace(/@01/gm,'style="display: none"');
                content = content.replace(/@02/gm,'style="display: none"');
                content = content.replace(/@03/gm,'style="display: none"');
                content = content.replace(/@04/gm,'style="display: none"');
                content = content.replace(/@05/gm,'style="display: none"');
                content = content.replace(/@06/gm,'style="display: none"');
                content = content.replace(/@07/gm,'style="display: none"');
                content = content.replace(/@08/gm,'style="display: none"');
                content = content.replace(/@09/gm,'style="display: none"');
            }

            return content;
        }
    }]);
});